package com.platform.usercenter.converter;

import com.platform.usercenter.domain.SysMenu;
import com.platform.usercenter.domain.SysMenuTreeDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Description: 菜单转换类
 * @Author: wcs
 * @Date: 2023-11-22 17:42
 **/
@Mapper
public interface SysMenuTreeDTOConverter {

    SysMenuTreeDTOConverter INSTANCE = Mappers.getMapper(SysMenuTreeDTOConverter.class);

//    @Mapping(target = "children", ignore = true)
//    List<SysMenuTreeDTO> sysMenuList2SysMenuTreeDTOList(List<SysMenu> menuList);

}
